/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Thach
 */
public class query {
    private String[] array_query;
    
    public query(String query)
    {
        this.array_query = query.split(" ");
    }
    
     //String  query = "+content:\"lack\"";
      //String  query = "+content:\"lack exhibition\" -content:\"USA\"";
     //String  query = "+content:\"lack\"+content:\"USA\"";
     //String  query = "+content:\"lack\" -content:\"USA\"";
   
    public String[] getArrayQuery()
    {
        return this.array_query;
    }
    
    public String createQueryString()
    {
        String queryString = "";
        for(int i =0; i<this.array_query.length; i++){
            //if()
            queryString += "+content:\"" + this.array_query[i] + "\"";
        }
        return queryString;
    }
}
